<%--
  Created by IntelliJ IDEA.
  User: 17126
  Date: 2022/4/6
  Time: 10:11
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>账户验证</title>
</head>
<body>
<jsp:useBean id="acc" class="com.account.Account" scope="page"/>
<jsp:setProperty name="acc" property="name"/>
<jsp:setProperty name="acc" property="psd"/>
<%
    if (acc.isLogIn()) {
%>
用户名:
<jsp:getProperty name="acc" property="name"/>
<br>
密码:
<jsp:getProperty name="acc" property="psd"/>
<br>
登录成功:
<jsp:getProperty name="acc" property="logIn"/>
<%
    } else {
        response.sendRedirect("login.jsp");
    }
%>
</body>
</html>
